package com.meizu.hjcool7.androidchecklist.database;

import android.content.Context;

import com.meizu.hjcool7.androidorm.DBHelper;

public class DBOpenHelper extends DBHelper
{
	private static final String DB_NAME = "Checklist";
	private static final int DB_VERSION = 1;
	
	private static DBOpenHelper sDbOpenHelper;
	
	public DBOpenHelper(Context context)
	{
		super(context, DB_NAME, DB_VERSION);
	}
	
	public static void createInstance(Context context)
	{
		if (sDbOpenHelper == null)
		{
			sDbOpenHelper = new DBOpenHelper(context);
		}
	}

	public static DBOpenHelper getInstance()
	{
		return sDbOpenHelper;
	}
}
